package com.woniuxy.service.impl;

import com.woniuxy.dao.UserDao;
import com.woniuxy.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import com.woniuxy.service.UserService;

import java.util.List;

public class UserServiceImpl  implements UserService {
    @Autowired
    UserDao userDao;


    @Override
    public boolean addUser(User user) {
        return userDao.addUser(user);
    }

    @Override
    public User findUserByNameAndPwd(String name, String password) {
        return userDao.findUserByNameAndPwd(name, password);
    }


    @Override
    public List<User> findAllUser() {
        return userDao.findAllUser();
    }
}
